Skip to content

Remove the unused ircmaxell/random-lib dependency - #22

Merged
koriym merged 1 commit into
1.xfrom
remove-random-lib
Nov 23, 2026
Merged

koriym merged 1 commit into
1.xfrom
remove-random-lib

Conversation

@koriym

@koriym koriym commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

ircmaxell/random-lib has been required since the initial commit, but no code in src or tests uses it, and aura/session 4.0, 6.0 and 7.0 do not require it (Aura\Session\Randval uses random_bytes()).

Local (PHP 8.4): phpunit passes with highest deps (aura/session 7.0.0) and with --prefer-lowest --prefer-stable (aura/session 4.0.0, ray/di 2.14.0).

Summary by CodeRabbit

  • Chores
    • Removed the unused ircmaxell/random-lib package requirement. Applications that rely on this package must declare it as a direct requirement.
  • Documentation
    • Updated the unreleased changelog with notes on Psalm taint-source annotations, cookie attribute and qualifier annotations, cookie-provider types, and the session setter’s void return type.

No code uses RandomLib and aura/session 4.0, 6.0 and 7.0 do not require it. Also log the changes merged since 1.4.0.
@koriym

koriym commented Nov 23, 2026

Copy link
Copy Markdown
Member Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@codecov

codecov Bot commented Nov 23, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (3546cc1) to head (a90a4d9).

Additional details and impacted files
@@             Coverage Diff             @@
##                 1.x       #22   +/-   ##
===========================================
  Coverage     100.00%   100.00%           
  Complexity         5         5           
===========================================
  Files              5         5           
  Lines             24        24           
===========================================
  Hits              24        24           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@coderabbitai

coderabbitai Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The Composer configuration removes the ircmaxell/random-lib requirement. The Unreleased changelog records this removal and changes to cookie and session annotations, types, attributes, and AuraSessionInject::setSession().

Changes: Package and changelog update

Layer / File(s) Summary
Remove package requirement and update release notes
composer.json, CHANGELOG.md
composer.json no longer requires ircmaxell/random-lib. The Unreleased changelog records this removal and other code changes. The aura/session constraint remains unchanged.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Other

Possibly related PRs

Merge Risk: Minimal · up to a90a4

This removes an unused dependency and updates the release notes. No merge-blocking risk was found, and the change is easy to revert.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title "Remove the unused ircmaxell/random-lib dependency" matches the main change. The composer.json diff removes the ircmaxell/random-lib requirement, and the changelog records the same removal. …
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "Remove the unused ircmaxell/random-lib dependency" matches the main change. The composer.json diff removes the ircmaxell/random-lib requirement, and the changelog records the same removal. The title is specific and short, and it names the primary change.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
Fix failing CI checks

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Central YAML; Path: .coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 7dbc7769-1f9e-42c6-b79b-269803680a63
Commits

Reviewing files that changed from the base of the PR and between 3546cc1 and a90a4d9.

Files selected for processing: 2

  • CHANGELOG.md
  • composer.json

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@koriym
koriym merged commit 5b8ccd5 into 1.x Nov 23, 2026
35 of 36 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant